example how to use texture mapping to color-code properties onto an objects surface. As example the object is simple cube, with some arbitraty values mapped onto its vertices. ESC key : exit F1 key : set RGB color coding F2 key : set one-dimensional texture F3 key : set two-dimensional texture (filter) F4 key : set two-dimensional texture (clipping) LEFTARROWKEY : increase translation in x in texture space Skey + LEFTA : increase scale in x in texture space RIGHTARROWKEY : decrease translation in x in texture space Skey + RIGHT : decrease scale in x in texture space UPARROWKEY : increase translation in y in texture space Skey + UPARR : increase scale in y in texture space DOWNARROEKEY : decrease translation in y in texture space Skey + DOWNA : decrease scale in y in texture space x key : resets texture translation and scale to original values LEFTMOUSE is used to rotate MIDDLEMOUSE and LEFTMOUSE is used to scale.
Source
Documentation
Reference